package com.zw.cloud.common.config.ex.dingtalk;

import com.zw.cloud.common.aop.DingTalkAspect;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@ConditionalOnExpression("${com.zw.cloud.default.exceptipn.msg.send.enable:true}")
@Slf4j
public class ExceptionMsgSendAutoConfig {
    @Configuration
    @Import(DingTalkAspect.class)
    public static class ExceptionMsgSendsConfiguration {
        static {
            // 使用 static 提前初始化
            log.info("[ExceptionMsgSendsConfiguration] Import DingTalkAspect");
        }
    }
}
